package cn.yx.common.core.pojo;

import cn.yx.common.core.pojo.base.BaseCond;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>通用ID查询条件</p>
 *
 * @author Wgssmart
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "IdCond", description = "通用ID查询对象")
public class IdCond<Id> extends BaseCond {

    @NotNull(message = "{cn.yx.common.core.idIsNull}")
    @ApiModelProperty(value = "单个id", required = true, example = "100")
    private Id id;

}
